package bean;

/**
 * UserSnapAtcId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class UserSnapAtcId implements java.io.Serializable {

	// Fields

	private Attractions attractions;
	private UserSnapshot userSnapshot;

	// Constructors

	/** default constructor */
	public UserSnapAtcId() {
	}

	/** full constructor */
	public UserSnapAtcId(Attractions attractions, UserSnapshot userSnapshot) {
		this.attractions = attractions;
		this.userSnapshot = userSnapshot;
	}

	// Property accessors

	public Attractions getAttractions() {
		return this.attractions;
	}

	public void setAttractions(Attractions attractions) {
		this.attractions = attractions;
	}

	public UserSnapshot getUserSnapshot() {
		return this.userSnapshot;
	}

	public void setUserSnapshot(UserSnapshot userSnapshot) {
		this.userSnapshot = userSnapshot;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof UserSnapAtcId))
			return false;
		UserSnapAtcId castOther = (UserSnapAtcId) other;

		return ((this.getAttractions() == castOther.getAttractions()) || (this
				.getAttractions() != null
				&& castOther.getAttractions() != null && this.getAttractions()
				.equals(castOther.getAttractions())))
				&& ((this.getUserSnapshot() == castOther.getUserSnapshot()) || (this
						.getUserSnapshot() != null
						&& castOther.getUserSnapshot() != null && this
						.getUserSnapshot().equals(castOther.getUserSnapshot())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getAttractions() == null ? 0 : this.getAttractions()
						.hashCode());
		result = 37
				* result
				+ (getUserSnapshot() == null ? 0 : this.getUserSnapshot()
						.hashCode());
		return result;
	}

}